import i18n from '@/common/lang'

export const columns = [
  {
    label: '定价单号',
    width: 180,
    prop: 'number',
    fixed: true
  },
  {
    label: '询价标题',
    width: 180,
    prop: 'enquiryTitle'
  },
  {
    label: '询价单号',
    width: 180,
    prop: 'enquiryNumber'
  },
  {
    label: '定价结果',
    width: 'auto',
    prop: 'result'
  },
  {
    label: '采购组织',
    prop: 'purchaseOrg',
    width: 'auto'
  },
  {
    label: '创建时间',
    prop: 'createTime',
    width: 160
  },
  {
    label: '状态',
    prop: 'state',
    width: 120
  }
]
export const actions = [
  {
    key: 'detail',
    text: i18n.t('common.detail'),
    permissions: 'srm:pricing:detail'
  },
  {
    key: 'send',
    text: i18n.t('common.send'),
    permissions: 'srm:pricing:publish'
  },
  {
    key: 'revocation',
    text: '悔标',
    permissions: 'srm:pricing:regret'
  }
]

export const detailColumns = [
  {
    label: '物料编码',
    width: 'auto',
    minWidth: 160,
    prop: 'materialCode',
    fixed: true
  },
  {
    label: '物料名称',
    width: 'auto',
    minWidth: 160,
    prop: 'materialName'
  },
  {
    label: '供应商编码',
    width: 'auto',
    minWidth: 160,
    prop: 'supplierCode'
  },
  {
    label: '供应商名称',
    width: 'auto',
    minWidth: 160,
    prop: 'supplierName'
  },
  {
    label: '单位',
    width: 100,
    prop: 'materialUnit'
  },
  {
    label: '数量',
    width: 100,
    prop: 'quantity'
  },
  {
    label: '参考单价(含税)/元',
    width: 140,
    prop: 'quotation'
  },
  {
    label: '税率/%',
    width: 100,
    prop: 'taxRate'
  },
  {
    label: '期望交货日期',
    width: 120,
    prop: 'deliveryDate'
  },
  {
    label: '交付地点',
    width: 180,
    prop: 'deliveryAddr'
  },
  {
    label: '报价单价(含税)/元',
    width: 160,
    prop: 'unitPrice'
  },
  {
    label: '总价(含税)/元',
    width: 140,
    prop: 'totalPrice'
  },
  {
    label: '定价结果',
    width: 100,
    prop: 'result',
    fixed: 'right'
  }
]
